package cn.itsource.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author : 张金铭
 * @description :
 * @create :2022-11-23 10:07:00
 */
@Data
@TableName("t_pet")
public class Pet {
    private Long id;//id

    private String name;//name

    private String resources;//图片地址

    private Double saleprice;//原价

    private LocalDateTime offsaletime;

    private LocalDateTime onsaletime;

    private Long state;//状态状态：0下架 1上架  2售出

    private Double price;//成本

    private String age;//宠物年龄

    private LocalDateTime createTime;//创建时间

    private Long typeId;//类型id

    private Long shopId;//店铺id

    private Long userId;//卖家id

    private Double costprice;//折扣价

    private String resourceType;//来源

    @TableField(exist = false)
    private String userName;//发布人名

    @TableField(exist = false)
    private String petTypeName;//宠物类型名

    @TableField(exist = false)
    private String shopName;//所属门店

    @TableField(exist = false)
    private PetDetail detail;

}
